<? $interface = $device->interfaces[$_GET['interface_id']];?>
<form>
	<input type="hidden" name="id" value="<?=$interface->id?>"/>
	<div class="column column1">
		<p><label>Name:</label><input type="text" name='ifName' maxlength="22" value="<?=$interface->ifName?>"/></p>
		<p><label>Alias:</label><input type="text" name='ifAlias' value="<?=$interface->ifAlias?>"/></p>
		<p><label>Description:</label><input type="text" name='ifDesc' value="<?=$interface->ifDescr?>"/></p>
		<p><label>MAC</label><input type="text" name="ifPhysAddress" value="<?=$interface->ifPhysAddress?>"/></p>
	</div>
	<div class="column column2">
		<p><label>Ignore</label><span  name="ignore" onValue="1" offValue="0" class="iToggle <?=$interface->ignore==true?'checked':''?>"> <?=$interface->ignore==true?'Yes':'No'?><span></span></span></p>
		<p><label>Enabled</label><span class="iToggle <?=$interface->ifAdminStatus=='up'?'checked':''?>"> <?=$interface->ifAdminStatus=='up'?'Yes':'No'?><span></span></span></p>
		<p><label>Link</label><span class="iToggle <?=$interface->ifOperStatus=='up'?'checked':''?>"> <?=$interface->ifOperStatus=='up'?'Yes':'No'?><span></span></span></p>
		<p><label>Link Speed</label><input type="text" name="ifSpeed" value="<?=$interface->getSpeed()?>"/></p>
		<p><label>MTU</label><input type="text" name="ifMtu" value="<?=$interface->ifMtu?>"/></p>
	</div>
</form>
<div class="graphs">
	<h3 class="iconSystemMonitor">Current Traffic <span>Last Hour</span></h3>
	<img class="graph" width="820" height="200" src="/graph.php?device=<?=$device->id?>&index=<?=$interface->ifIndex?>&type=interfaceTraffic&width=820&height=200&legend=0&start=-1h" graph="device=<?=$device->id?>&index=<?=$interface->ifIndex?>&type=interfaceTraffic&start=-1h&title=<?=$interface->getDescription()?> Traffic in the last hour"/>
</div>
<div class="graphs">
	<h3 class="iconSystemMonitor">Interface Traffic</h3>
	<img class="graph" width="270" height="200" src="/graph.php?device=<?=$device->id?>&index=<?=$interface->ifIndex?>&type=interfaceTraffic&width=270&height=200&start=-1d" graph="device=<?=$device->id?>&index=<?=$interface->ifIndex?>&type=interfaceTraffic&start=-1d&title=Traffic over the last 24hrs"/>
	<img class="graph" width="270" height="200" src="/graph.php?device=<?=$device->id?>&index=<?=$interface->ifIndex?>&type=interfaceTraffic&width=270&height=200&start=-1w" graph="device=<?=$device->id?>&index=<?=$interface->ifIndex?>&type=interfaceTraffic&start=-1w&title=Traffic over the last week"/>
	<img class="graph" width="270" height="200" src="/graph.php?device=<?=$device->id?>&index=<?=$interface->ifIndex?>&type=interfaceTraffic&width=270&height=200&start=-1m" graph="device=<?=$device->id?>&index=<?=$interface->ifIndex?>&type=interfaceTraffic&start=-1m&title=Traffic over the last month"/>
</div>
<div class="graphs">
	<h3 class="iconSystemMonitor">Interface Packets</h3>
	<img class="graph" width="270" height="200" src="/graph.php?device=<?=$device->id?>&index=<?=$interface->ifIndex?>&type=interfacePackets&width=270&height=200&start=-1d" graph="device=<?=$device->id?>&index=<?=$interface->ifIndex?>&type=interfacePackets&start=-1d&title=Packets over the last 24hrs"/>
	<img class="graph" width="270" height="200" src="/graph.php?device=<?=$device->id?>&index=<?=$interface->ifIndex?>&type=interfacePackets&width=270&height=200&start=-1w" graph="device=<?=$device->id?>&index=<?=$interface->ifIndex?>&type=interfacePackets&start=-1w&title=Packets over the last week"/>
	<img class="graph" width="270" height="200" src="/graph.php?device=<?=$device->id?>&index=<?=$interface->ifIndex?>&type=interfacePackets&width=270&height=200&start=-1m" graph="device=<?=$device->id?>&index=<?=$interface->ifIndex?>&type=interfacePackets&start=-1m&title=Packets over the last month"/>

</div>
<div class="graphs">
	<h3 class="iconSystemMonitor">Interface Non Unicast</h3>
	<img class="graph" width="270" height="200" src="/graph.php?device=<?=$device->id?>&index=<?=$interface->ifIndex?>&type=interfaceNUPackets&width=270&height=200&start=-1d" graph="device=<?=$device->id?>&index=<?=$interface->ifIndex?>&type=interfaceNUPackets&start=-1d&title=Non Unicase Packets over the last 24hrs"/>
	<img class="graph" width="270" height="200" src="/graph.php?device=<?=$device->id?>&index=<?=$interface->ifIndex?>&type=interfaceNUPackets&width=270&height=200&start=-1w" graph="device=<?=$device->id?>&index=<?=$interface->ifIndex?>&type=interfaceNUPackets&start=-1w&title=Non Unicase Packets over the last week"/>
	<img class="graph" width="270" height="200" src="/graph.php?device=<?=$device->id?>&index=<?=$interface->ifIndex?>&type=interfaceNUPackets&width=270&height=200&start=-1m" graph="device=<?=$device->id?>&index=<?=$interface->ifIndex?>&type=interfaceNUPackets&start=-1m&title=Non Unicase Packets over the last month"/>
</div>
<div class="graphs">
	<h3 class="iconSystemMonitor">Interface Errors</h3>
	<img class="graph" width="270" height="200" src="/graph.php?device=<?=$device->id?>&index=<?=$interface->ifIndex?>&type=interfaceErrors&width=270&height=200&start=-1d" graph="device=<?=$device->id?>&index=<?=$interface->ifIndex?>&type=interfaceErrors&start=-1d&title=Errors over the last 24hrs" />
	<img class="graph" width="270" height="200" src="/graph.php?device=<?=$device->id?>&index=<?=$interface->ifIndex?>&type=interfaceErrors&width=270&height=200&start=-1w" graph="device=<?=$device->id?>&index=<?=$interface->ifIndex?>&type=interfaceErrors&start=-1w&title=Errors over the last week"/>
	<img class="graph" width="270" height="200" src="/graph.php?device=<?=$device->id?>&index=<?=$interface->ifIndex?>&type=interfaceErrors&width=270&height=200&start=-1m" graph="device=<?=$device->id?>&index=<?=$interface->ifIndex?>&type=interfaceErrors&start=-1m&title=Errors over the last month"/>
</div>
